// pages/recomm/recomm.js
import {recomData} from '../../data/data.js';


Page({

  /**
   * 页面的初始数据
   */
  data: {
    recomm:Array
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad (options) {
    this.setData({
      recomm:recomData
    });
    console.log(this.data.recomm);
  },

  /**
     * 跳转站外
     */
    goToPage (event) {
      wx.navigateToMiniProgram({
        appId: event.currentTarget.dataset.it.appid,
        path: event.currentTarget.dataset.it.ppage,
        envVersion: "release",
        success(res) {

        }
      });
    },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  }
})